SetHorFlip
Flips the current drawing horizontally.
Syntax
expression.SetHorFlip(bFlip);
expression
- A variable that represents a ApiDrawing class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
bFlip | Required | boolean | Specifies if the figure will be flipped horizontally or not. |
Returns
This method doesn't return any data.
Example
This example flips the drawing horizontally.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let fill = Api.CreateSolidFill(Api.CreateRGBColor(255, 111, 61));
let stroke = Api.CreateStroke(0, Api.CreateNoFill());
let drawing = Api.CreateShape("cube", 3212465, 963295, fill, stroke);
paragraph.AddDrawing(drawing);
drawing.SetHorFlip(true);